package com.niit.session7.loop;

import java.util.Scanner;

public class UserLogin1 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String uername;
		String password;
		do {
			System.out.print("请输入用户名：");
			uername = sc.next();
			System.out.print("请输入密码：");
			password = sc.next();
		} while (!(uername.equals("trout") && password.equals("123456")));
		
		System.out.println("登录成功");
		
	}

}
